package cpsobras.fornecedor;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import cpsobras.cliente.PJuridica.PJuridica;
import cpsobras.movimento.Movimento;

@Entity
@DiscriminatorValue(value="J")
public class Fornecedor extends PJuridica implements Serializable {
	private static final long serialVersionUID = 1L;

	@OneToMany(mappedBy="fornecedor", cascade = CascadeType.ALL)
	private List<Movimento> movimento;
		
}
